﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.Specialized;

namespace DevSky.WebParts.YouTube
{
    [Serializable]
    public class SingleVideo
    {
        public SingleVideo()
        {
            Thumbnails = new List<VideoThumbnail>();
        }
        public string ID { get; set; }
        public string Title { get; set; }
        public List<VideoThumbnail> Thumbnails { get; set; }
        public DateTime Published { get; set; }
        public DateTime Updated { get; set; }

        public string ShortLink
        {
            get
            {
                return string.Format("http://www.youtube.com/v/{0}", ID);
            }
        }
        public string ShortLinkAutoPlay
        {
            get
            {
                return string.Format("http://www.youtube.com/v/{0}&autoplay=1", ID);
            }
        }
    }
}
